<template>
  <div class="home__container">
    <div class="box">
      <el-button type="primary" @click="goLogin">其他页面</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
  import { useRouter } from 'vue-router'
  const router = useRouter()
  // login
  const goLogin = ()=>{
    router.push({
      path: '/login'
    })
  }
</script>

<style lang="scss" scoped>
  .home__container {
    width: 100%;
    height: 100%;
    .box {
      margin: 100px auto;
      width: 500px;
      height: 500px;
      background-color: #eee;
      
    }
  }
</style>
